import Mock from 'mockjs'

const list = Mock.mock({
  'data|100-150': [{
    'id|+1': 1,
    'flowId': /^[A-Z]{3}$/,
    'tokenName': /^[A-Z]{3}$/,
    'type': 10,
    'transferAmount|1-1000.1-2': 1,
    'createTime': '@datetime',
    'balance|1000-5000.2-4': 1,
    'walletBalance|500-5000.2-4': 1,
    'phone': /^1(3|4|5|7|8)\d{9}$/,
    'walletAddress|20-30': '',
    'txHash|20-30': '',
  }]
})

export default [
  {
    url: '/admin/flow/list',
    type: 'post',
    response: config => {
      return {
        'code': 10000,
        'responseTime': 1548489480000,
        'message': 'OK',
        "total": list.data.length,
        'data': list.data,
      }
    }
  }
]
